//-----路由文件-----//
const express = require('express')
//router
const router = express.Router()
//引入文件services、captcha
const services = require('./services.js')

// router.get('/',services.start)
//获取验证码
router.get('/api/captcha',services.captcha)
// 登录功能
router.post('/api/login',services.login)
// 注册功能
router.post('/api/register',services.register)

//这里把它暴露出去
module.exports = router;